import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CustomerComponent } from './customer.component';
import { CustomerPropertyResourcesContentComponent } from './customer-property-resources/customer-property-resources-content/customer-property-resources-content.component';
import { CustomerPropertyResourcesComponent } from './customer-property-resources/customer-property-resources.component';

const routes: Routes = [
    {
        path: '',
        component: CustomerComponent,
        children: [
            { path: '', redirectTo: 'shared' },
            // { path: 'property-list', component: CustomerPropertyListComponent },
            // { path: 'property-management', component: CustomerPropertyManagementComponent },
            { path: 'property-resources/:resource_id', component: CustomerPropertyResourcesComponent,
                children:[
                    {path:'content/:menuIndex',component:CustomerPropertyResourcesContentComponent}
                ]
        
            },
            { path: 'shared', loadChildren: '../shared-property-resource/shared.module#SharedResourceModule'},
      
          ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class CustomerRoutingModule {}
